﻿@model AccountViewModel
@{
    ViewBag.Title = "添加";
    Layout = "_Layout";
}
<h2>添加</h2>

<form asp-action="SubmitAdd" method="post">
    <table class="table">
        <tr>
            <td>
                <!--标签-->
                <label asp-for="DebtorId"></label>
            </td>
            <td>
                <!--下拉框-->
                <select asp-items="ViewBag.DebtorList" asp-for="DebtorId">
                    <option value="">请选择</option>
                </select>
            </td>
            <td>
                <span asp-validation-for="DebtorId" style="color:red;"></span>
            </td>
        </tr>
        <tr>
            <td>
                <label asp-for="BankName"></label>
            </td>
            <td>
                <input asp-for="BankName" />
            </td>
            <td>
                <span asp-validation-for="BankName" style="color:red;"></span>
            </td>
        </tr>
        <tr>
            <td>
                <label asp-for="SaleMan"></label>
            </td>
            <td>
                <input asp-for="SaleMan" />
            </td>
            <td>
                <span asp-validation-for="SaleMan" style="color:red;"></span>
            </td>
        </tr>
        <tr>
            <td>
                <label asp-for="DebtorMoney"></label>
            </td>
            <td>
                <input type="number" asp-for="DebtorMoney" />
            </td>
            <td>
                <span asp-validation-for="DebtorMoney"></span>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="submit" class="btn btn-primary" value="添加" />
            </td>
            <td></td>
        </tr>
    </table>

</form>
